﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="More.aspx.cs" Inherits="Enterprise.UI.Web.Modules.Doc.More" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript">
    $(function () {
        getData(<%=page %>,<%=pagesize %>, $('#hclassid').val());
        $('#pp').pagination({
            total: $('#hidcount').val(),
            onSelectPage: function (pageNumber, pageSize) {
                $(this).pagination('loading');
                //alert('pageNumber:' + pageNumber + ',pageSize:' + pageSize);
                getData(pageNumber, pageSize, $('#hclassid').val());
                $(this).pagination('loaded');
            }
        });
    });

    function getData(page,pageSize,classid) {
        $.ajax({
            type: "POST",
            cache: false,
            url: "More.ashx?page=" + page + "&pagesize=" + pageSize + "&classid=" + classid+"",
            data: {},
            success: function (data) {
                $('#grid').empty();
                $('#grid').append(data);
            }
        });
    }
	</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainPH" runat="server">
    <asp:HiddenField ID="hidcount" runat="server" ClientIDMode="Static" />
    <asp:HiddenField ID="hclassid" runat="server" ClientIDMode="Static" />
    <asp:HiddenField ID="hclassids" runat="server" ClientIDMode="Static" />
    <div id="title" style="line-height:30px; font-size:14px; font-weight:bold; text-align:center; color:#003399">
        <asp:Label ID="lb_title" runat="server" Text=""></asp:Label></div>
    <div id="grid"></div>
    <div id="pp" style="background:#efefef;border:1px solid #ccc;"></div>
</asp:Content>
